{template header} 
<script type="text/javascript" src="{APPPUBLIC}Scripts/Product_Img_Tip.js"></script>
<link href="{APPPUBLIC}Styles/Page.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="{APPPUBLIC}Styles/Tab.css" />    
<script type="text/javascript" src="{APPPUBLIC}Scripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="{APPPUBLIC}Scripts/ui.tab.js"></script>

<script type="text/javascript">
	var GB_ROOT_DIR = "{APPPUBLIC}/Greybox/";
</script>
<script type="text/javascript" src="{APPPUBLIC}Greybox/AJS.js"></script>
<script type="text/javascript" src="{APPPUBLIC}Greybox/AJS_fx.js"></script>
<script type="text/javascript" src="{APPPUBLIC}Greybox/gb_scripts.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	var tab2 = new $.fn.tab({
		tabList:"#Tab .ui-tab-container .ui-tab-list li",
		contentList:"#Tab .ui-tab-container .ui-tab-content",
		showType:"slide"
	});
});	
{$pageinfo};

</script>
<link href="{APPPUBLIC}Greybox/gb_styles.css" rel="stylesheet" type="text/css" media="all" />
<style type="text/css">
<!--
#alertdiv3{
	position:absolute;
	height:450px;
	width:500px;
	z-index:9999;
	left:50%;
	margin-left:-250px;
	padding:1px;
	border:5px solid #ccc;
	font-size:12px;
	display:none;
	background-color:#FFFFFF
}
#alertdiv3 h2{
	height:25px;
	background-color:#E4E4E4;
	font-size:12px;
	padding-left:5px;
	line-height:25px;
	margin:0;
	padding-top: 0;
	padding-right: 0;
	padding-bottom: 0;
	position: relative;
	color: #666;
}
#alertdiv3 h2 a{
	position:absolute;
	display:block;
	right:5px;
	display:block;
	margin:0;
	width:25px;
	height:25px;
	cursor:pointer;
	margin:0;
	padding:0;
	overflow:visible;
	top: 0px;
}
.forminfo{padding:5px;}
.bg{
	background-color:#666;
	-moz-opacity: 0.5;opacity:.50;filter: alpha(opacity=50);
	height:10000px;
	width:120%;
	position:absolute;
	z-index:9998;
	left:0;
	top:0;
	display:none
}
 
#CountMsg {
	font-size: 20px;
	font-weight: bold;
	color: #FFF;
	text-align: center;
}
-->
</style>
<script type="text/javascript">
function alertinfo(id){//显示弹出层
var obj = document.getElementById(id);
var W = screen.width;//取得屏幕分辨率宽度
var H = screen.height;//取得屏幕分辨率高度
var yScroll;//取滚动条高度
if (self.pageYOffset) {
yScroll = self.pageYOffset;
} else if (document.documentElement && document.documentElement.scrollTop){
yScroll = document.documentElement.scrollTop;
} else if (document.body) {
yScroll = document.body.scrollTop;
}

//obj.style.marginLeft= (W/2 - 200) + "px";
obj.style.top= (H/2 -90 - 225　+　yScroll) + "px";
document.getElementById("bg").style.display="block";
obj.style.display="block";

var scrollstyle = scrolls();
scrollstyle.style.overflowX = "hidden";
scrollstyle.style.overflowY = "hidden";
}
function closediv(id){//关闭弹出层
document.getElementById(id).style.display="none";
document.getElementById("bg").style.display="none";

var scrollstyle = scrolls();
scrollstyle.style.overflowY = "auto";
scrollstyle.style.overflowX = "hidden";
}
function scrolls(){//取浏览器类型
var temp_h1 = document.body.clientHeight;
var temp_h2 = document.documentElement.clientHeight;
var isXhtml = (temp_h2<=temp_h1&&temp_h2!=0)?true:false;
var htmlbody = isXhtml?document.documentElement:document.body;
return htmlbody;
}
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#e6e6e6"><table width="920" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="950" valign="top" bgcolor="#FFFFFF"><table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="1" colspan="3" bgcolor="#E6E6E6"></td>
            </tr>
          <tr>
            <td height="30" bgcolor="#f9f9f9" colspan="3" width=100%><table border="0" cellspacing="0" cellpadding="0" width=100%>
              <tr><td>{$nav_url}</td>
                <!--td width="25"><img src="{APPPUBLIC}Images/Public/Point.gif" width="14" height="10" /></td>
				
                <td class="Categories_Menu"><a href="#" class="Categories_Menu_a">首页</a> 》<a href="#" class="Categories_Menu_a">女装</a> 》<a href="#" class="Categories_Menu_a">JONES NEW YORK</a> 》衬衫（女款） 白色</td-->
                 <td height="30" colspan="2" align="center" bgcolor="#f9f9f9"><!--span class="Hot_Txt">10分钟</span>前旗舰店售出一件</td-->
				 </tr>
              </table></td>
          
            </tr>
          <tr>
            <td height="1" colspan="3" bgcolor="#E6E6E6"></td>
            </tr>
          <tr>
            <td height="10" colspan="3"></td>
            </tr>
          <tr>
            <td width="350" valign="top">
             <!--{loop $goods_img_list $key $val}-->         
            
              <a href="{WEBURL}{$val['img_org']}"  rel="gb_imageset[nice_pics]" title="Maxcl 产品相册"><img src="{WEBURL}{$val['img_src']}" id="list{$key}" width="340" height="408" border="0" class="pic" /></a>
			<!--{/loop}-->	
            
            
            </td>
            <td valign="top" class="Product_line"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"><form name=MDL_FORMBUY>
              <tr>
                <td height="40"><table width="100%" border="0" cellspacing="0" cellpadding="0">
					  <tr>
						<td class="Title">{$goods_name}</td>
						</tr>
					</table>
					</td>
                </tr>
				<tr><td height="1" bgcolor="#e6e6e6"></td></tr>
              <tr>
                <td height="10"></td>
                </tr>  
			<tr>
                <td   valign="top">{$goods_brief}</td>
                </tr>  
                  <tr>
                <td height="10"></td>
                </tr> 
			  <tr><td class="line_Bg_1"></td></tr>
			  
               <!--{if $show_time}-->
			  <tr>
			    <td height="40">
                <table width="100%" border="0" cellspacing="0" cellpadding="0" id='table_show_time' class='none'>
                      <tr>
                        <td height="40" align="left" valign="top" bgcolor="#990000"><div id="CountMsg">促销结束倒计时：<strong id="RemainD">XX</strong>天<strong id="RemainH">XX</strong>时<strong id="RemainM">XX</strong>分<strong id="RemainS">XX</strong>秒</div></td>
                      </tr>
                      </table>
			      </td>
			    </tr>
                <tr><td height="10"></td></tr>
                 <tr><td class="line_Bg_1"></td></tr>
                <!--{/if}-->

			
             
			  <tr>
                <td class="Categories_Menu">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
				 <!--{if $is_promote==1}-->
				  <tr><td height="20"><span class="Was">原价：￥{$market_price}</span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="Was">妙价：￥{$shop_price}</span></td></tr>
				   <tr><td height="25"> <!--{if $is_promote==1}--><span class="MaxclPrice">妙网促销价：￥$promote_price</span><!--{/if}--><br><span class="Offers">为您节省：{eval echo number_format((1-$promote_price/$market_price)*100,2,'.',' ')}%</span></td></tr>
				  <!--{else}-->
				 <tr><td height="20">原价：￥<span class="Was">{$market_price}</span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="Was"></span></td></tr>
				  <tr><td height="25"> <span class="MaxclPrice">妙价：￥{$shop_price}</span><br><span class="Offers">为您节省：{eval echo number_format((1-$shop_price/$market_price)*100,2,'.',' ') }%</span></td></tr>
				 <!--{/if}-->
				</table>				        
				</td>
              </tr>
			  <tr><td height="10"></td></tr>
              <tr><td height="20" class="line_Bg_1"></td></tr>
			  <tr><td height="10"></td></tr>
              <tr>
                <td height="25" class="Categories_Menu">
				<table border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="40">颜色：</td>
                    <td width="">
                     <!--{loop $goods_color_list $key $val}-->
          			 <a href="{eval goods_nav_url(array('color'=>{$key},'gid'=>{$val['gid']}) )}" style="background-image: url({WEB_PUBLIC_URL}speclogo/{$val['color_log']});background-repeat: no-repeat;background-position: left center;font-size: 12px;color: #999;text-decoration: none;padding-right: 20px;padding-left: 25px;padding-top: 10px;line-height: 30px;padding-bottom: 5px;margin-right: 10px;">{$val['other_color']}&nbsp;</a>
			<!--{/loop}-->
                    </td>
                    </tr>
                  </table>
				  
				  </td>
                </tr>
              <tr>
                <td height="25" class="Categories_Menu"><table border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="40">尺码：</td>
                    <td> 
			<!--{loop $goods_size_list $key $val}-->
				 <!--{if $size==$key}-->
		         
				  <div class="msize_s"> {$val['size_name']} 
					 </div>
	             <!--{else}-->
				 <a href="{eval goods_nav_url(array('size'=>{$key},'gid'=>{$val['gid']}) )}" class="msize">{$val['size_name']}</a>
				
				 <!--{/if}-->
			<!--{/loop}-->	
                    
                    </td>
                    <td width="80" align="center"><a href="{__ROOT__}/size.html" title="尺码对照"  target="_blank"><img src="{APPPUBLIC}Images/P/size.gif" border="0" /></a></td>
                  </tr>
                </table></td>
                </tr>
				<tr><td height="10"></td></tr>
              <tr>
                <td class="line_Bg_1"></td>
              </tr>
			  <tr><td height="10"></td></tr>                
              <tr>
                <td height="20"><span class="Categories_Menu">您选择了：</span><span class="Order_a">{$color_name}</span> / <span class="Order_a">$size_name</span> / <span class="Order_a">￥{$chang_price} 【还剩{$quantity}件】</span></td>
              </tr>
			  <!--{if $quantity>0}-->
			  
              <tr>
					<td height="25">订购数量：
					<select name="number" id="number">
						{$get_select_num}
					</select>
				 </td>
              </tr>
			  <tr><td height="10"></td></tr>
              <tr>
                <td class="line_Bg_1"></td>
              </tr>
              <tr>
                <td height="80"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="150">
                    
                     <div id=divAddcartover style="background-color: #f1f1f1;border: 1px double #CCC;height: 60px;width: 300px;text-align: center;line-height: 25px;	display:none;padding-top: 10px;"></div>
                <div id=addcartIcon>
                    <a href="javascript: addToCart('{$gid}');" onFocus=this.blur()><img src="{APPPUBLIC}Images/P/Buy.gif" width="130" height="30" border="0" /></a>
                    </div>
                    
                    </td>
                    <td>&nbsp;</td>
                  </tr>
                </table></td>
                </tr>
              <tr>
                <td height="10"></td>
                </tr> 
			<!--{/if}-->
              <tr>
                <td valign="top"><div id="Tab">
                  <div class="ui-tab-container">
                    <ul class="clearfix ui-tab-list">
                      <li class="ui-tab-active">介绍</li>
                      <li>推荐给好友</li>
                      </ul>
                    <div class="ui-tab-bd">
                      <div class="ui-tab-content"><p>{$goods_desc} <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td>
					  <!--{if $brand_logo}-->
					  <a href="{eval echo U('Brands/read',array('id'=>$brand_id) )}" title="{$brand_name}品牌介绍" target="_blank"><img src="{WEB_PUBLIC_URL}brandlogo/{$brand_logo}" width="58" height="30" border="0" /></a>
					  <!--{/if}-->
					  </td>
                      <td><a href="{eval echo U('Brands/read',array('id'=>$brand_id) )}" title="{$brand_name}品牌介绍" class="Order_a" target="_blank">点击查看{$brand_name}品牌介绍</a></td>
                    </tr>
                  </table></div>
                      <div class="ui-tab-content" style="display:none"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="80"><input name="mdl_mail" id='mdl_mail' type="text" value="输入好友Email地址" onfocus="this.value='';" class="input_3"/>&nbsp;&nbsp;<input name="ss" type="button" value="推荐" class="input_4" onclick=send_mail() /></td>
    <td width="135"><!-- JiaThis Button BEGIN -->
<a href="http://www.jiathis.com/share.html" class="jiathis"><img src="http://www.jiathis.com/code/images/jiathis.gif" width="125" height="21" border="0" id="jiathis_a"/></a>
<script type="text/javascript" src="http://www.jiathis.com/code/jia.js" charset=utf-8></script>
<!-- JiaThis Button END --></td>
  </tr>
</table>
</div>
                      </div>
                    </div>
                  </div>
                  </td>
                </tr>                
                
              <tr>
                <td height="60" align="center">
               
                <img src="{APPPUBLIC}Images/P/1.gif" width="287" height="42" />
                
                
                </td>
              </tr>
              <tr>
                <td class="line_Bg_1"></td>
              </tr>              
            <!--{if $goods_history}-->
              <tr id="div_history">
                <td height="30" bgcolor="#f9f9f9" class="Categories_Menu">
				<table border=0 width=100%><tr><td><span class="txt_B">您最近浏览过...</span></td><td width=40><span id="clear_history"><a onclick="clear_history()">清空</a></span></td></tr></table>
				 </td>
                </tr>
              <tr>
                <td class="line_Bg_1"></td>
                </tr>
              <tr>
                <td height="60" class="boxCenterList" id="history_list">                
                {$goods_history}                
                </td>
                </tr>
              <tr>
                <td class="line_Bg_1"></td>
              </tr>
			  <!--{/if}--></form>
              </table>
			  
			  
			  </td><!--{if $goods_fittings_list}-->
			  
            <td width="133" valign="top">
			
			<table border="0" align="right" cellpadding="0" cellspacing="0" width="123">
              <tr>
                <td height="40"><img src="{APPPUBLIC}Images/P/T.gif" width="133" height="12" /></td>
                </tr>
  				<!--{loop $goods_fittings_list $key $val}-->		
              <tr>
                <td align="Center" class="Brand_Name"><a href="{eval echo U('Goods/show',array('gid'=>$val['gid']))}"><img src="{$val['picture']}"   border="0" /></a></td>
                </tr>
                 
              <tr>
                <td height="20" align="Center" class="Brand_Name">$val['brand_name']</td>
                </tr>
				<tr>
                <td height="" align="Center" class="Product_Name" style="padding-left: 5px;"> 
                  $val['goods_name']</td>
                </tr>
                <tr>
                <td height="20" align="Center" class="class="was1"">原价:<span class=Was>$val['market_price']</span></td>
                </tr>
				 <tr>
                <td height="20" align="Center" class="MaxclPrice">
                  妙价:$val['shop_price']</td>
                </tr>
				
				<tr><td height="10"></td></tr>
				<tr><td height="20" class="line_Bg_1"></td></tr>
				<tr><td height="10"></td></tr>
             <!--{/loop}-->
              </table>			  
			  </td> 
               <!--{/if}-->
            </tr>
        </table>
          <table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td height="10"></td>
                </tr>
              <tr>
                <td class="line_Bg_1"></td>
                </tr>
               <!--{if $goods_link_list}-->
              <tr>
                <td height="30" bgcolor="#f9f9f9" class="txt_B">&nbsp;&nbsp;妙网猜你会喜欢...</td>
                </tr>
              <tr>
                <td class="line_Bg_1"></td>
                </tr>
              <tr>
                <td>
				<table border=0 width=100% height=100 style='height:100px'><tr>
			
                    <!--{loop $goods_link_list $key $val}-->	
					<td>   
                       <div class="goods_link_list">
                          <table  border="0" cellspacing="0" cellpadding="0" class="div_goods_link_list"> 
							<tr>
							<td height="10" align="center">  <a href="{$val['url']}"><img src="{$val['picture']}"   border="0" class="P_Img" /></a> </td>
							</tr>
							<tr>
							<td height="10"></td>
							</tr>
							<tr>
							<td height="20" align="center"><a href="{$val['url']}" class="Brand_Name">{$val['brand_name']}</a></td>
							</tr>
							<tr>
							<td align="center"><a href="{$val['url']}" class="Product_Name" title="{$val['goods_name']}">{$val['short_name']}</a></td>
							</tr>
							<tr>
							<td height="20" align="center"  class="was1">原价:<span class="Was">{$val['market_price']} </span></td>
							</tr>
							<tr>
							<td height="30" align="center" class="MaxclPrice">妙价:{$val['shop_price']} </td>
							</tr>
							</table>      
                        </div>    </td>                     
                        <!--{/loop}-->	
                  
				</tr></table>
				</td>
              </tr>
              <tr>
                <td height="1" bgcolor="#E6E6E6"></td>
              </tr>
              <!--{/if}-->
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>
</form>
<script type="text/javascript" src="{APPPUBLIC}js/json.js"></script>

<script type="text/javascript" src="{APPPUBLIC}Scripts/common.js"></script>

<SCRIPT LANGUAGE="JavaScript">
<!--
	var goods_id = '{$gid}';
	var addcarturl='{eval echo U("Order/addtocart")}';
	var tocarturl='{eval echo U("Order/cart")}';

function clear_history(){
	jQuery.ajax({
				url: PagePI.URL+"/clear_history",
				data: '',
				type:"POST" ,
				dataType:'json', 
				success: function(e){
				      document.getElementById('div_history').style.display = 'none';
					 document.getElementById('history_list').innerHTML = '';
						 
				}
		});  
}
function send_mail(){
        var email=jQuery('#mdl_mail').val();
		var url=PagePI.URL+"/sendemail"
		url=url.replace('index.php/','');
		 
		jQuery.ajax({
				url: url,
				data: 'mdl_mail='+email+'&is_ajax=1',
				type:"POST" ,
				dataType:'json', 
				success: function(e){
				   if(e==1){
				     alert('邮件已发送');
				   }else{
				     alert('邮件发送失败')
				   }
				      
						 
				}
		});
}

<!--{if $show_time}--> 
var startTime = new Date();
var EndTime=startTime.getTime()+{$show_time};
function GetRTime(){
	var NowTime = new Date();
	var nMS =EndTime - NowTime.getTime();
	var nD =Math.floor(nMS/(1000 * 60 * 60 * 24));
	var nH=Math.floor(nMS/(1000*60*60)) % 24;
	var nM=Math.floor(nMS/(1000*60)) % 60;
	var nS=Math.floor(nMS/1000) % 60;
	 document.getElementById("RemainD").innerHTML=nD;
	 
	 document.getElementById("RemainH").innerHTML=nH;
	 document.getElementById("RemainM").innerHTML=nM;
	 document.getElementById("RemainS").innerHTML=nS;
	 $("#table_show_time").show();
	if(nMS>5*59*1000&&nMS<=5*60*1000){
		alert("还有最后五分钟！");
	}
	setTimeout("GetRTime()",1000);
}

window.onload=GetRTime;
 <!--{/if}-->
//-->

</script> 

{template footer}